<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="niveau" />
<xsl:template match="document">

<xsl:apply-templates select="menu[@level=$niveau]" />
</xsl:template>



<xsl:template match="menu">
<div class="menu">
<ul>

<xsl:for-each select="item">
	<xsl:if test="@class='normal'">
	<li>
	
		<a>
		<xsl:attribute name="href">
		<xsl:value-of select="link"/>
		</xsl:attribute>
		<xsl:value-of select="title"/>
		</a>
	</li>
	</xsl:if>
	<xsl:if test="@class='deroulant'">
	<li><span class="asLink">
		<xsl:value-of select="title"/>
		</span>
		
		<ul class="nav_deroulant">
		<xsl:for-each select="liste/item">
			<li>
			
				<a>
				<xsl:attribute name="href">
				<xsl:value-of select="link"/>
				</xsl:attribute>
				<xsl:value-of select="title"/>
				</a>
			</li>
		</xsl:for-each>
		</ul>

		
		
	</li>
	</xsl:if>
</xsl:for-each>

</ul>
</div>
</xsl:template>


</xsl:stylesheet>
